﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Runtime.InteropServices;
namespace AProxy
{
 


    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(textBox1.Text + "", null, null, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22");
            button4.Text = "Grabbing";
        }

        public void updateUrl()
        {
            textBox1.Text = webBrowser1.Url.ToString();
        }

        public WebBrowser getWebBrowser()
        {
            return webBrowser1;
        }

        public void updateProxy(int value){
            label1.Text = "Proxys grabbed: " + value;
        }

    }
}
